<?php

$GLOBALS['callable']['searchCtrl'][] = function ($ctrl) {
    
    require_once APP_PATH.'model/ModulesDao.php';

    $filepath = APP_PATH."modules/{$ctrl}/ctrl/{$ctrl}.php";
    
    if (file_exists($filepath)) {
      require_once $filepath;
        return true;
    }

    return false;
    
};